package com.zenith.edu.po.dto;

import com.zenith.common.base.BaseDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = true)
@Schema(name = "EduAssignmentDTO", description = "作业DTO")
public class EduAssignmentDTO extends BaseDTO {
    
    @Schema(description = "主键ID")
    private Long id;
    
    @Schema(description = "所属课程ID")
    private Long courseId;
    
    @Schema(description = "作业标题")
    private String title;
    
    @Schema(description = "作业类型：1-作业 2-测验 3-考试")
    private Integer type;
    
    @Schema(description = "开始时间")
    private LocalDateTime startTime;
    
    @Schema(description = "截止时间")
    private LocalDateTime endTime;
    
    @Schema(description = "限时（分钟）")
    private Integer duration;
    
    @Schema(description = "允许重试：0-否 1-是")
    private Integer allowRetry;
    
    @Schema(description = "结束后显示答案：0-否 1-是")
    private Integer showAnswer;
    
    @Schema(description = "状态：1-正常 2-禁用")
    private Integer status;
}